/**
 * 
 */
package com.iwords.service;

import java.util.List;

import javax.ejb.Remote;

import com.iwords.service.object.TeacherEntity;
import com.iwords.service.object.UserEntity;

/**
 * @author    	huangbaichuan 
 * @time      	2011-8-14    
 * @description	老師-service  
 */
@Remote
public interface TeacherService {

	void create(TeacherEntity entity);

	void edit(TeacherEntity entity);

	void remove(TeacherEntity entity);

	TeacherEntity find(Object id);

	List<TeacherEntity> findAll();
        
        int count();

	List<TeacherEntity> findRange(int[] range);
        
        TeacherEntity findByTeachername(String teachername);
        
        List<UserEntity> findStudentsByTeacherid(Long teacherid);
        
	boolean isContain(TeacherEntity entity);

        public TeacherEntity findTeacherByMarktingID(TeacherEntity teacher);
        

}
